package com.entitymapper;


public class EntityStatusException extends EntityMapperException {

	private static final long serialVersionUID = 1L;
	
	private int status;
	private int reStatus;	
	
	public EntityStatusException(String message) {
		super(message);
	}
	public EntityStatusException() {
		super();
	}
	public EntityStatusException(String message, Throwable cause) {
		super(message, cause);
	}
	public EntityStatusException(Throwable cause) {
		super(cause);
	}
	public EntityStatusException(int status) {
		this.status = status;
		if(0 != status) {
			if(8 != status) {
				reStatus = -1;
			}else {
				reStatus = 1;
			}
		}
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getReStatus() {
		return reStatus;
	}
	public void setReStatus(int reStatus) {
		this.reStatus = reStatus;
	}
}
